using Godot;
using System;

public partial class 射线碰撞检测ForRay : RayCast2D
{
    public override void _PhysicsProcess(double delta) {
        if (IsColliding())
        {
            var collider = GetCollider();
            if (collider is not null)
            {
                GD.Print("Collided with: ", ((Node)collider).Name,"可以展开其他剧情！！！");
            }
        }
    }
}
